<template slot="search">
  <div>
    <el-form-item label="发布人">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.nickName"
        placeholder=""
      ></el-input>
    </el-form-item>
    <el-form-item label="学校">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.schoolName"
        placeholder=""
      ></el-input>
    </el-form-item>

    <el-form-item label="城市">
      <el-input
        size="mini"
        :clearable="true"
        v-model="params.city"
        placeholder=""
      ></el-input>
    </el-form-item>

    <el-form-item label="发布时间">
      <el-date-picker
        size="mini"
        v-model="params.createTime"
        type="date"
        value-format="yyyy-MM-dd"
        placeholder="选择日期">
      </el-date-picker>
    </el-form-item>

    <el-form-item label="是否匿名">
      <el-select size="mini" v-model="params.isAnon" placeholder="请选择">
        <el-option
          v-for="item in deletes"
          :key="item.name"
          :label="item.name"
          :value="item.value">
        </el-option>
      </el-select>
    </el-form-item>
  </div>
</template>
<script>
export default {
  data() {
    return {
      params: {
        createTime: "",
        schoolName:"",
        city:"",
        nickName: "",
        isAnon: ""
      },
      deletes: [
        {
          value: '',
          name: "全部"
        },
        {
          value: "1",
          name: "匿名"
        },
        {
          value: "0",
          name: "正常"
        }
      ]
    };
  }
  , created() {
  }
};
</script>
<style scoped>
</style>
